
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">单位基本信息</td>
	</tr>
	<tr>
		<td nowrap align="right">单位名称：</td>
		<td colspan='8'><input type="hidden"
			name="organizations/organization[0]@submit_org" value="1"> <input
			type="hidden" name="organizations/organization[0]@sequence_no"
			value="1"> <input type="hidden"
			name="organizations/organization[0]/org_code"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>">
			<span name="organizations/organization[0]/cname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">法人代码：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/org_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_no" />
		</span></td>
		<td nowrap align="right">营业执照注册号：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/org_licence"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence" />
		</span></td>
		
	</tr>
	<tr>
	    <td nowrap align="right">通讯地址：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/address"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/address" />
		</span></td>
	    <td nowrap align="right">生产、办公面积：</td>
		<td colspan='3'>
		    <span name="organizations/organization[0]/office_product_develope" id="office_product_develope"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/office_product_develope" /></span>平方米
		    <input type="hidden" id='office_develope' value="<x:out select='$xmlData/data/organizations/organization[@submit_org=1]/office_develope' />">
		    <input type="hidden" id='office_product' value="<x:out select='$xmlData/data/organizations/organization[@submit_org=1]/office_product' />">
		    <script type="text/javascript">
	           $(function() {
		             var office_develope=$("#office_develope").val();
		             var office_product=$("#office_product").val();
		         	 if(office_develope=='' || office_develope=='由系统统计')
		         		 office_develope = 0;
		         	 if(office_product=='' || office_product=='由系统统计')
		         		office_product = 0;
		             var count=parseInt(office_develope)+parseInt(office_product);
		             $("#office_product_develope").text(count);
	           });
            </script>
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>行政办公地址：</td>
		<td colspan='4'>
		    <input name="proposal/address_office" style="width: 205px;" label="行政办公地址" maxlength=100 class="input_text required" value="<x:out
					select="$xmlData/data/proposal/address_office" />">
		</td>
		<td nowrap align="right">电子邮箱：</td>
		<td colspan='3'>
		    <span name="proposal/contact_email">
					 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/email"/>
		</span>&nbsp;
		</td>
	</tr>
	<tr>
		<td nowrap align="right">传真：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/fax"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/fax" />
		</span></td>
		<td nowrap align="right">单位网址：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/http">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/http" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">公司员工人数：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />
		</span>人</td>
		<td nowrap align="right">大专以上人员数：</td>
		<td colspan='3'>
		    <span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>人
		    <input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
		    <input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
		    <input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
		    <input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
		    <script type="text/javascript">
	           $(function() {
		             var degree_college=$("#degree_college").val();
		             var degree_bachelor=$("#degree_bachelor").val();
		             var degree_master=$("#degree_master").val();
		             var degree_doctor=$("#degree_doctor").val();
		             var count=parseInt(degree_college)+parseInt(degree_bachelor)+parseInt(degree_master)+parseInt(degree_doctor);
		             $("#degree_total").text(count);
	           });
            </script>
		</td>
	</tr>	
	<tr>
	    <td nowrap align="right">研发人员数：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/work_yanfa"> <x:out
					select="$xmlData/data/organization_persons/work_yanfa" />
		</span>人</td>
	    <td nowrap align="right">开户银行：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/bank_orgname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">银行账号：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/bank_account"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account" />
		</span></td>
		<td nowrap align="right">信用等级：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/bank_credit"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit" />
		</span></td>
	</tr>
	<tr>
	    <td nowrap align="right">注册时间：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/registe_date"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date" />
		</span></td>
	    <td nowrap align="right">注册资金：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/registe_fund"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund" />万<x:out 
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">其中外资比例：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/registe_fund_foreign_rate">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate" />
		</span>%</td>
		<td nowrap align="right">注册类型：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/nature_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name" />
		</span></td>
	</tr>
	<tr>
		<td width="" nowrap align="right">经营范围：</td>
		<td colspan='8'><span
			name="organizations/organization[0]/opt_scope"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">经营方式：</td>
		<td colspan='8'>
		    <span name="organizations/organization[0]/opt_model_name">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_name" />
		    </span>
		    <span style="display: none" name="organizations/organization[0]/opt_model_value">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_value" />
		    </span>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">单位特性：</td>
		<td colspan='8'>
		    <span name="organizations/organization[0]/chk_characteristic_name">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_name" />
		    </span>
		    <span style="display: none" name="organizations/organization[0]/chk_characteristic_value">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_value" />
		    </span>
		</td>
	</tr>
</table>
<br>
					<div class="t_bar">单位人员情况</div>
					<table class="t_css" cellpadding="0" cellspacing="0" width="100%" id='orgInfo2'align="center">
							<thead>
							<tr>
								<th class="TblHead" align="center" width="100px">
									&nbsp;
								</th>
								<th class="TblHead" align="center">
									姓名
								</th>
								<th class="TblHead" align="center">
									职务
								</th>
								<th class="TblHead" align="center">
									职称
								</th>
								<th class="TblHead" align="center">
									办公电话
								</th>
								<th class="TblHead" align="center">
									手机
								</th>
								
							</tr>
							</thead>
							<tbody id="tab">
							
							<tr>
								<td align="right">
									单位负责人：
								</td>
								<td align="center">
									
									<span name="organization_persons/organization_person[00]/cname">
										<x:out
											select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
									</span>
									<input type="hidden"
										  name="organization_persons/organization_person[00]@psn_type" value="fuzeren">
								</td>
								<td align="center">
									<span
										name="organization_persons/organization_person[00]/position">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/position"/>
									</span>
								</td>
								<td align="center">
									<span name="organization_persons/organization_person[00]/prof_title_name">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/prof_title_name"/>
									</span>
									<span style="display:none" name="organization_persons/organization_person[1]/prof_title_value">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/prof_title_value"/>
									</span>
								</td>
								<td align="center">
									<span name="organization_persons/organization_person[00]/tel">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel"/>
									</span>
								</td>
								<td align="center">
									 <span name="organization_persons/organization_person[00]/mobile">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile"/>
									</span>
								</td>
								
							</tr>
									<tr>
									<td align="right">法人代表：</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/cname">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
										</span>
										<input type="hidden"
										  name="organization_persons/organization_person[01]@psn_type" value="faren">
									</td>
									<td align="center">
									     <span name="organization_persons/organization_person[01]/position">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/position"/>
										</span>
									</td>	
									<td align="center">
								        <span name="organization_persons/organization_person[01]/prof_title_name">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/prof_title_name"/>
										</span>
										<span style="display:none" name="organization_persons/organization_person[01]/prof_title_value">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/prof_title_value"/>
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/tel">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel"/>
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/mobile">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
										</span>
									</td>
							</tr>
									<tr id="fzr">
									<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">						
									    <td align="right" >项目负责人：</td>
										<td >
										<input type="text" disabled="disabled" name="organization_persons_fzr/organization_person_fzr/zh_name" label="单位人员情况-->项目负责人姓名"  class="input_css required maxlength:100" value="<x:out select="$xmlData/data/organization_persons_fzr/organization_person_fzr/zh_name"/>" maxlength="100"/>
										<input type="hidden"
										  name="organization_persons/organization_person[02]@psn_type" value="sbrfuzeren">
										<input type='hidden' name='zh_name' value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" />" />
									
										<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
												<span id="personSelect">
												<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="更改">
												<cpt:personSelect key="personSelect" addRole="3" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
												</span>
										</security:authorize>
										</td>
										<td >
										<input type='text' name='organization_persons_fzr/organization_person_fzr/position' class='required' maxlength='50' label='单位人员情况-->项目负责人职务' value="<x:out select="$xmlData/data/organization_persons_fzr/organization_person_fzr/position"/>"/>
									    <input type='hidden' name='position' value='<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" />' />
										</td>
										<td >
										<input type='text' name='organization_persons_fzr/organization_person_fzr/prof_title_name' class='required' maxlength='50' label='单位人员情况-->项目负责人职称' value="<x:out select="$xmlData/data/organization_persons_fzr/organization_person_fzr/prof_title_name"/>"/>
									    <input type='hidden' name='prof_title_name' value='<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" />' />
										</td>
										<td >
										<input type='text' name='organization_persons_fzr/organization_person_fzr/tel' class='required' maxlength='50' label='单位人员情况-->项目负责人办公电话' value="<x:out select="$xmlData/data/organization_persons_fzr/organization_person_fzr/tel"/>"/>
									    <input type='hidden' name='tel' value='<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>' />
										</td>
										<td > 
										<input type='text' name='organization_persons_fzr/organization_person_fzr/mobile' class='required mobile' maxlength='11' onfocus="InitInput.setNumber(this,11,0,0)" label='单位人员情况-->项目负责人手机' value="<x:out select="$xmlData/data/organization_persons_fzr/organization_person_fzr/mobile"/>" />
									    <input type='hidden' name='mobile' value='<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />' />
										</td>
									</security:authorize>
									<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
									<td align="right">项目负责人：</td>
									<td align="center">
									    <span name="organization_persons_fzr/organization_person_fzr/zh_name">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" />
										</span>
										<input type="hidden"
										  name="organization_persons/organization_person[02]@psn_type" value="sbrfuzeren">
									</td>
									<td align="center">
									     <span name="organization_persons_fzr/organization_person_fzr/position">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" />
										</span>
									</td>	
									<td align="center">
								        <span name="organization_persons_fzr/organization_person_fzr/prof_title_name">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" />
										</span>
										<span style="display:none" name="organization_persons_fzr/organization_person_fzr/prof_title_value">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_value" />
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons_fzr/organization_person_fzr/tel">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons_fzr/organization_person_fzr/mobile">
											<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>
										</span>
									</td>
									</security:authorize>
							</tr>
							</tbody>
					</table>
					
<br>
<div class="t_bar">主要股东</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01">
	<thead>
		<tr>
			<th align="center" width="40%" nowrap>主要股东名称</th>
			<th width="20%" align="center">股东出资额(万元)</th>
			<th width="20%">出资形式</th>
			<th width="20%">所占股份比例（%）</th>

		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach
			select="$xmlData/data/organization_shareholders/shareholder"
			var="shareholder">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span style='display: none'
					name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
					<span
					name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						<x:out select="$shareholder/cname" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						<x:out select="$shareholder/invest_amount" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						<x:out select="$shareholder/invest_type_name" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						<x:out select="$shareholder/invest_percent" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br>
<div class="t_bar">机构拥有知识产权状况: （单位：件）</div>
<table class="t_css table01 " width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<th rowspan="2">专利申请总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">专利授权总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">软件著作权</th>
		<th rowspan="2">（IC）布图设计专有权</th>
	</tr>
	<tr>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
	</tr>
	<tbody id="tab">
	    <tr>
	        <td align="center">
	            <input type="hidden"
			       name="knowledges/knowledge[0]@sequence_no" value="1">
	            <span name="knowledges/knowledge[0]/kr_request">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_invent" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_new" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_outward" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_invent" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_new" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_outward" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_soft">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_soft" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_ic">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_ic" />
	            </span>
	        </td>
	    </tr>
	</tbody>
</table>
<br>
<div class="t_bar">近三年曾获政府资助的情况（金额：万元）</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01">
	<thead>
		<tr>
			<th width="16%" align="center" nowrap>项目名称</th>
			<th width="13%" align="center">资助部门</th>
			<th width="11%" nowrap="nowrap">资助时间</th>
			<th width="11%" nowrap="nowrap">资助金额</th>
			<th width="10%" nowrap="nowrap">项目验收情况</th>
			<th width="10%" nowrap="nowrap">验收时间</th>
			<th width="9%" nowrap="nowrap">资助形式</th>
			<th width="10%" nowrap="nowrap">借款偿还情况</th>
			<th width="10%">还款时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project" var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td ><span
					name="research/fund_project[${flag}${index}]/ctitle"> <x:out
							select="$research/ctitle" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_date"> <x:out
							select="$research/accept_date" />
				</span></td>
				<td align="center"><span name="research/fund_project[${flag}${index}]/award_type_name">
						<x:out select="$research/award_type_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_date"> <x:out
							select="$research/repay_date" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>

<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:choose>
	<c:when test="${grantCode==69 }">
	     <table border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
	          <tr>
		         <td nowrap align="right">近两年银行贷款总额：</td>
		         <td colspan='2'>
		              <input name="research/total_loan" class="input_text required" 
		              label="近两年银行贷款总额"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;"
		              value="<x:out select='$xmlData/data/research/total_loan' />" >万
		         </td>
		         <td nowrap align="right">余额：</td>
		         <td>
		             <input name="research/over"  class="input_text required" 
		             label="近两年银行贷款总额中的余额"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;"
		             value="<x:out select='$xmlData/data/research/over' />" >万
		         </td>
		         <td nowrap align="right">到期偿还情况：</td>
		         <td colspan='2'>
		             <c:set var="repay_value">
					      <x:out select="$xmlData/data/research/repay_value" />
				     </c:set> 
				     <input name="research/repay_value" type="hidden" 
				            value="<x:out select="$xmlData/data/research/repay_value" />"
				            class="required " label="近两年银行贷款总额中的到期偿还情况" /> 
				     <input name="research/repay_name" type="hidden"
				            value="<x:out select="$xmlData/data/research/repay_name" />" />
				     <cpt:select id="repay" key="repay"  onChange="initControlValue('repay')" value="${repay_value}">
				     </cpt:select>
		         </td>
	          </tr>
	     </table>   
	</c:when>
</c:choose>

<br>
<div class="t_bar">申请单位经济效益情况(单位:万元)</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01">
	<thead>
		<tr>
			<th width="10%" align="center" nowrap>年度</th>
			<th width="15%" align="center">总产值</th>
			<th width="15%" nowrap="nowrap">(其中)高新技术产品产值</th>
			<th width="15%">总收入</th>
			<th width="15%">净利润</th>
			<th width="15%">纳税额</th>
			<th width="15%" nowrap="nowrap"><span class="color_red">*</span>研发投入额</th>
		</tr>
	</thead>
	<tbody id="tab">
	   
		<x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear-2}">
					<tr>
						<td align="center">
						    <input type="hidden"
							name="organization/finances/finance[00]@sequence_no" value='1' />
							<input type="hidden"
							name="organization/finances/finance[00]@year"
							value="${statYear-2}" />
							<span name="organization/finances/finance[00]/year_name">前年</span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[00]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[00]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[00]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[00]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[00]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa5" name="organization/finances/finance[00]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa6" name="organization/bnfinances/relief_fax_income_yanfa3" style="width:80px;text-align:right"
				        label="前年中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa5');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa3' />" />
						</td>
                        
					</tr>
					
				</c:when>
			</c:choose>

		</x:forEach>
	
	
	
	  
		<x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear-1}">
					<tr>
						<td align="center">
						   
							<input type="hidden"
							name="organization/finances/finance[01]@year"
							value="${statYear-1}" />
							
							 <input type="hidden"
							name="organization/finances/finance[01]@sequence_no" value='2' />
							
							<span name="organization/finances/finance[01]/year_name">上年度</span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[01]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[01]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[01]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[01]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[01]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa3" name="organization/finances/finance[01]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa4" name="organization/bnfinances/relief_fax_income_yanfa2" style="width:80px;text-align:right"
				        label="上年度中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa3');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa2' />" />
						</td>
					</tr>
					
				</c:when>
			</c:choose>
		</x:forEach>
		
		<x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear}">
					<tr>
						<td align="center">
						   
							<input type="hidden"
							name="organization/finances/finance[02]@year"
							value="${statYear-1}" />
							
							 <input type="hidden"
							name="organization/finances/finance[02]@sequence_no" value='3' />
							
							<span name="organization/finances/finance[02]/year_name">本年度预计</span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[02]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[02]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[02]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="center"><span
							name="organization/finances/finance[02]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="center"><span
							name="organization/finances/finance[02]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa1" name="organization/finances/finance[02]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa2" name="organization/bnfinances/relief_fax_income_yanfa" style="width:80px;text-align:right"
				        label="本年度预计中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa1');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa' />" />
						</td>
					</tr>
					
				</c:when>
			</c:choose>
		</x:forEach>
	</tbody>
</table>
<script type="text/javascript">
	$(function() {
		setYanFa('relief_fax_income_yanfa6','relief_fax_income_yanfa5');//初始化本年度预计 研发投入额
		setYanFa('relief_fax_income_yanfa4','relief_fax_income_yanfa3');//初始化本年度预计 研发投入额
		setYanFa('relief_fax_income_yanfa2','relief_fax_income_yanfa1');//初始化本年度预计 研发投入额
	});
	
	function setYanFa(id1,id2){
		var income_yanfa=$("#"+id1).val();
		if(income_yanfa=="")$("#"+id2).val("");	
		else $("#"+id2).val(income_yanfa);
		
	}
</script>
<script type="text/javascript">
	function selectPsnCall(data) {
	$("input[name$='psn_code']").val(data.person.psnCode);
	$("#fzr").find("input[name$='zh_name']").val(data.person.zhName);
	$("#fzr").find("input[name$='position']").val(data.personExtend.basic_info.position);
	$("#fzr").find("input[name$='prof_title_name']").val(data.personExtend.basic_info.prof_title_name);
	$("#fzr").find("input[name$='tel']").val(data.personExtend.contact.tel_work);
	$("#fzr").find("input[name$='mobile']").val(data.personExtend.contact.mobile);
	tb_remove2();
	}
	</script>
	<script type="text/javascript">
      $(function() {
         initPersonValue("fzr");
      });
      
      function initPersonValue(tblName){
    	  var tbl = $("#" + tblName);
    	  
    	  tbl.find("input[type=hidden]").each(function(){
    			var id=$(this).attr("name");
    			
    			if(id==null || id=="")
    				return true;
    			var parentObj=tbl.find("[name$='/"+id+"']");
    			
    			if(parentObj.val() == null || $.trim(parentObj.val()) == ""){
    				var value= $(this).val();
	    			parentObj.val(value);
    			}
    			
    		});
    	  
      }
</script>
